package cn.foolishbird.business.abstraction.iassert.einfo;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-12-13
 */
public enum Demo implements EInfo {

    RUN_TIME(-1, "system's error");

    private int code;

    private String explain;

    Demo(int code, String explain) {
        this.code = code;
        this.explain = explain;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return explain;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }
}
